package service.impl;

import dao.UserDao;
import service.UserService;

public class UserServiceImpl implements UserService {
    UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    String name;

    public void setName(String name) {
        this.name = name;
    }



    @Override
    public void regist() {
        System.out.println("name="+name);
        userDao.insert();
    }

    @Override
    public void login() {
        userDao.select();
    }
}
